#include "HttpServer/HttpServerModule.h"
#include "Utility/Log/TraceLog.h"
#include "WebModule/WebModule.h"

int main(int argc, char const *argv[])
{
    if (!HttpServerModule::Get().InitModule())
    {
        TRACE_LOG_A(NULL, "DEBUG", "%s\n", "Init HttpServer failed");
        return -1;
    }
    TRACE_LOG_A(NULL, "DEBUG", "%s\n", "Init HttpServer");
    TRACE_LOG_A(NULL, "DEBUG", "%s\n", "HttpServer");

    if (!WebModule::Get().InitModule())
    {
        TRACE_LOG_A(NULL, "DEBUG", "%s\n", "Init WebModule failed");
        return -1;
    }
    TRACE_LOG_A(NULL, "DEBUG", "%s\n", "Init WebModule");

    while ('q' != getchar())
    {
#if _WIN32
        Sleep(20);
#else
        sleep(20);
#endif // _WIN32

        
    }
    
    
    return 0;
}
